/**
 * Author:runlin。tang.
 * Creation Time: 2016/6/29
 * Description:
 *              pppoe渲染页面
 */
define(['jquery','underscore','backbone','../../../common/js/lib/text!../../../tpl/pppoe.tpl','../m/pppoeLink','../m/getData'],
    function ($,_,Backbone,pppoe,pppoeLink,getData) {
    function indexV(wan_pppoe_user,wan_pppoe_password){
        $('.webApp-content').html(_.template(pppoe));
        $(".oeuser").val(wan_pppoe_user);
        $(".oepass").val(wan_pppoe_password);
        $(".pppoe-link").click(function(){
            var wan_pppoe_users = $(".oeuser").val();
            var wan_pppoe_passwords = $(".oepass").val();
            pppoeLink(wan_pppoe_users,wan_pppoe_passwords);
        });
        $(".webApp-content").on('click','.com_btn_next',function(){
            getData();
        });
    }

    return indexV;
});